package com.pro.springbootpro.mapper;

import com.pro.springbootpro.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author DJR (1210843430@qq.com)
 */
@Mapper
public interface SysUserMapper {
    /**
     * 根据用户名查询用户
     * @param username
     * @return SysUser
     */
    SysUser selectByUserName(@Param("username") String username);

    /**
     * 保存用户
     * @param sysUser
     */
    void save(SysUser sysUser);
}
